#!/usr/bin/env python2.7
#-*-coding:utf-8-*-

from sys import argv
from os.path import exists

script,from_file,to_file=argv

print "copying from %s to %s"%(from_file,to_file)

input=open(from_file)
indata=input.read()

print "the input file is %d bytes long"%len(indata)

print "Does the output file exists?%r"%exists(to_file)

print "ready ,hit return to go or ctrl+c to interrupt"
raw_input()

output=open(to_file,'w')
output.write(indata)

print "alright,all done"

output.close()
input.close()

